From: Adrian Bunk Date: Sat, 19 Sep 2026 09:07:54 +0000 (+0800) Subject: Fix FTBFS with VTK 9.6 X-Git-Tag: archive/raspbian/4.10.0+dfsg-9+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=754d305f824c77e5c20ad2932442efb18edcd1c2;p=opencv.git Fix FTBFS with VTK 9.6 Bug-Debian: https://bugs.debian.org/1142180 Gbp-Pq: Name vtk-9.6.patch --- diff --git a/contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp b/contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp index e2d3380..9896291 100644 --- a/contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp +++ b/contrib/modules/viz/src/vtk/vtkVizInteractorStyle.cpp @@ -45,6 +45,8 @@ #include "../precomp.hpp" +#include + namespace cv { namespace viz { vtkStandardNewMacro(vtkVizInteractorStyle) @@ -96,7 +98,7 @@ void cv::viz::vtkVizInteractorStyle::saveScreenshot(const String &file) snapshot_writer->SetFileName(file.c_str()); snapshot_writer->Write(); - cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl; + std::cout << "Screenshot successfully captured (" << file.c_str() << ")" << endl; } ////////////////////////////////////////////////////////////////////////////////////////////// @@ -118,7 +120,7 @@ void cv::viz::vtkVizInteractorStyle::exportScene(const String &file) exporter->SetInput(Interactor->GetRenderWindow()); exporter->Write(); - cout << "Scene successfully exported (" << file.c_str() << ")" << endl; + std::cout << "Scene successfully exported (" << file.c_str() << ")" << endl; } void cv::viz::vtkVizInteractorStyle::exportScene() diff --git a/contrib/modules/viz/src/widget.cpp b/contrib/modules/viz/src/widget.cpp index b46d3d1..3bfcd6a 100644 --- a/contrib/modules/viz/src/widget.cpp +++ b/contrib/modules/viz/src/widget.cpp @@ -45,6 +45,8 @@ #include "precomp.hpp" +#include + /////////////////////////////////////////////////////////////////////////////////////////////// /// widget implementation